package user;

import dao.Jdbcuserdao;
import dao.Userdao;
import entity.ChallengeInfo;

public class ReleaseAction {

	private ChallengeInfo paly;
	private String chellname;
	private String play;
	private String area;
	private String chellplayid;
	private int money;

	public String getChellname() {
		return chellname;
	}

	public void setChellname(String chellname) {
		this.chellname = chellname;
	}

	public String getPlay() {
		return play;
	}

	public void setPlay(String play) {
		this.play = play;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getChellplayid() {
		return chellplayid;
	}

	public void setChellplayid(String chellplayid) {
		this.chellplayid = chellplayid;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

	public String execute() throws Exception {

		System.out.println(paly.getChellname());
		Userdao Udao = new Jdbcuserdao();

		Udao.release(paly);
		return "success";
	}

	public ChallengeInfo getPaly() {
		return paly;
	}

	public void setPaly(ChallengeInfo paly) {
		this.paly = paly;
	}

}
